package com.example.stuwork.pojo;

import java.util.Date;

/**
 * 学生实体类
 */
public class Student {
    
    private String studentId;      // 学号（自动生成）
    private String password;       // 加密密码（BCrypt）
    private String name;           // 学生姓名
    private String gender;         // 性别（男、女、其他）
    private String year;           // 入学年份（如2024）
    private String deptNumber;     // 院系编号
    private String majorCode;      // 专业编码
    private Long classId;          // 班级ID
    private String phone;          // 手机号（脱敏存储）
    private String email;          // 邮箱
    private String avatarUrl;      // 学生头像的URL地址
    private Date createTime;       // 创建时间
    private Date updateTime;       // 修改时间
    
    // 非数据库字段，用于前端显示
    private String className;      // 班级名称
    private String deptName;       // 院系名称
    
    public Student() {
    }
    
    public String getStudentId() {
        return studentId;
    }
    
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getGender() {
        return gender;
    }
    
    public void setGender(String gender) {
        this.gender = gender;
    }
    
    public String getYear() {
        return year;
    }
    
    public void setYear(String year) {
        this.year = year;
    }
    
    public String getDeptNumber() {
        return deptNumber;
    }
    
    public void setDeptNumber(String deptNumber) {
        this.deptNumber = deptNumber;
    }
    
    public String getMajorCode() {
        return majorCode;
    }
    
    public void setMajorCode(String majorCode) {
        this.majorCode = majorCode;
    }
    
    public Long getClassId() {
        return classId;
    }
    
    public void setClassId(Long classId) {
        this.classId = classId;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getAvatarUrl() {
        return avatarUrl;
    }
    
    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public String getClassName() {
        return className;
    }
    
    public void setClassName(String className) {
        this.className = className;
    }
    
    public String getDeptName() {
        return deptName;
    }
    
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    
    @Override
    public String toString() {
        return "Student{" +
                "studentId='" + studentId + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", year='" + year + '\'' +
                ", deptNumber='" + deptNumber + '\'' +
                ", majorCode='" + majorCode + '\'' +
                ", classId=" + classId +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", className='" + className + '\'' +
                ", deptName='" + deptName + '\'' +
                '}';
    }
} 